package com.fanghuaiming.seata.order.spi.item.fallback;

import com.fanghuaiming.seata.common.model.enumeration.ResultEnum;
import com.fanghuaiming.seata.common.model.item.Sku;
import com.fanghuaiming.seata.order.spi.item.SeataItemFeignClient;
import org.springframework.stereotype.Component;

/****
 * @description: 商品微服务熔断降级
 * @version:1.0.0
 * @author fanghuaiming
 * @data Created in 2020/11/27 下午6:01
 *
 */
@Component
public class SeataItemFeignClientFallBack implements SeataItemFeignClient {

    /**
     * @Description: 降级方法
     *
     * @param:
     * @return:
     * @auther: fanghuaiming
     * @date: 2020/11/27 下午6:02
     * @version:1.0.0
     */
    @Override
    public String reduceItem(Sku sku) {
        return ResultEnum.FALL_BACK.getMessage();
    }
}
